package Demo4;

public class OldPhone {
    private String brand;
    private int price;

    public OldPhone(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void call(){
        System.out.println("打电话...");
    }

    public void show(){
        System.out.println("展示手机号...");
    }
    public void sendMessage(){
        System.out.println("发短信...");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
